<?php
$type = isset($button['type']) ? $button['type'] : 'primary';
$this->widget('bootstrap.widgets.TbButton', array(
    'label' => $button['label'],
    'type' => $type,
    'url' => $button['url']
        )
);
?>
